#include "osObjects.h"
#include "pincfg.h"
#include "lcd.h"

/*****************************************************************************//*!
*
* @brief   led task.
*     
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/
void LcdCtrTask(void *argument)
{
    OS_ERR      os_err;
    u8 x=0;
	u8 lcd_id[12];
    LCD_Init();
    LCD_Display_Dir(1);
    LCD_Scan_Dir(0);
    sprintf((char*)lcd_id,"LCD ID:%04X",lcddev.id);
    LCD_Clear(LIGHTBLUE);
    for(;;){
        OSTimeDly (1000, OS_OPT_TIME_DLY, &os_err);
    
		POINT_COLOR=RED;	
        BACK_COLOR=LIGHTBLUE;
		LCD_ShowString(10,40,300,32,32,"What a lovely day !"); 	
		LCD_ShowString(10,80,300,24,24,"Hellow, where are you ?");
		LCD_ShowString(10,110,240,16,16,"ATOM@ALIENTEK");
 		LCD_ShowString(10,130,240,16,16,lcd_id);		      					 
		LCD_ShowString(10,150,240,12,12,"2016/1/6");	      					 
		x++;
		if(x==12)x=0;
	
    }
}





